package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 零件管理对象 sys_parts
 * 
 * @author ruoyi
 * @date 2021-10-31
 */
public class SysParts extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private String partId;

    /** 名称 */
    @Excel(name = "名称")
    private String partName;

    /** 数量 */
    @Excel(name = "数量")
    private Long partNum;

    /** 进货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "进货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date partDate;

    public void setPartId(String partId) 
    {
        this.partId = partId;
    }

    public String getPartId() 
    {
        return partId;
    }
    public void setPartName(String partName) 
    {
        this.partName = partName;
    }

    public String getPartName() 
    {
        return partName;
    }
    public void setPartNum(Long partNum) 
    {
        this.partNum = partNum;
    }

    public Long getPartNum() 
    {
        return partNum;
    }
    public void setPartDate(Date partDate) 
    {
        this.partDate = partDate;
    }

    public Date getPartDate() 
    {
        return partDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("partId", getPartId())
            .append("partName", getPartName())
            .append("partNum", getPartNum())
            .append("partDate", getPartDate())
            .toString();
    }
}
